package top.jimc.spring.qualifier;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Jimc.
 * @since 2018/9/27.
 */
public class App {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("beans-qualifier.xml");

        Customer customer = (Customer) context.getBean("customer");

        Person person = customer.getPerson();

        person.say();
    }
}
